#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "retroarch.h"
#include "litters.h"
#include "postman.h"
#include "jami.h"
#include "sousuo.h"
#include "gengxin.h"
#include "yianzhuang.h"
#include "quanju.h"
#include <QCursor>
#include <QMouseEvent>
#include <QDialog>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);


}

MainWindow::~MainWindow()
{
    delete ui;
}



void MainWindow::on_toolButton_clicked()
{
//    this->hide();
    softwarename="Retriarch";
    Retroarch *dlg = new Retroarch(this);
    dlg->show();
}

void MainWindow::on_toolButton_2_clicked()
{
//    this->hide();
    softwarename="Litters";
    Litters *dlg = new Litters(this);
    dlg->show();
}

void MainWindow::on_toolButton_3_clicked()
{
//    this->hide();
    softwarename="Postman";
    Postman *dlg = new Postman(this);
    dlg->show();
}

void MainWindow::on_pushButton_5_clicked()
{
//    this->hide();
    softwarename="Jami";
    Jami *dlg = new Jami(this);
    dlg->show();
}

void MainWindow::on_pushButton_4_clicked()
{
    Sousuo *dlg = new Sousuo(this);
    dlg->show();
}

void MainWindow::on_pushButton_2_clicked()
{
    Yianzhuang *dlg = new Yianzhuang(this);
    dlg->show();
}

void MainWindow::on_pushButton_3_clicked()
{
    Gengxin *dlg = new Gengxin(this);
    dlg->show();
}
